package com.bwda.dsrs.filecenter.domain.form.terminal;


import com.bwda.dsrs.base.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author yangjun
 */
@Data
@ApiModel
public class TerminalUpdateForm {

    @ApiModelProperty(value = "终端编号", required = true)
    @NotNull(message = "终端编号不能为空")
    private String id;

    @ApiModelProperty(value = "终端唯一编码")
    private String terminalCode;

    @ApiModelProperty(value = "MAC地址")
    private String macAddr;

    @ApiModelProperty(value = "终端版本")
    private String terminalVersion;

    @ApiModelProperty(value = "0正常1冻结")
    private Integer terminalState;

    @ApiModelProperty(value = "客户端标识")
    private String clientAgent;

    @ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date createTime;

    @ApiModelProperty(value = "逗号隔开")
    private String rightIds;

    @ApiModelProperty(value = "0未删除1已删除")
    private Integer delFlag;

}